class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.column :name,        :string, :null => false
      t.column :category_id, :integer
      t.column :code,        :string, :null => false
      t.column :description, :text
      t.column :image_id,    :integer
      t.column :keywords,    :text
      t.column :order,       :integer
    end
  end

  def self.down
    drop_table :categories
  end
end
